﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AbstractFactory
{
    public class BrickRoom : IRoom
    {
        public IWall EastWall { get; set; }
        public IWall SouthWall { get; set; }
        public IWall WestWall { get; set; }
        public IWall NorthWall { get; set; }
    }

    public class BrickWall : IWall
    {
        public IDoor Door { get; set; }
    }

    public class BrickDoor : IDoor
    {
        public bool IsOpen { get; set; }
    }

    public class BrickMazeFactory : IMazeFactory
    {
        public IRoom GetRoom()
        {
            return new BrickRoom();
        }

        public IWall GetWall()
        {
            return new BrickWall();
        }

        public IDoor GetDoor()
        {
            return new BrickDoor();
        }
    }

}
